package com.class05.controller;

import jakarta.servlet.annotation.WebFilter;
import jakarta.servlet.annotation.WebServlet;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyController {


//    localhost:8080/test
    @GetMapping("/test")
    public String test() {
        int a = 1 / 0;
        return "hello world";
    }



    @GetMapping("/testInterceptor")
    public String testInterceptor() {

        return "hello world";
    }
}
